package nc.liat6.frame.validate.rule;

import nc.liat6.frame.validate.RegUtil;

/**
 * 英文字母
 *
 * @author 6tail
 *
 */
public class RuleLetter extends RuleRegex{

  public RuleLetter(String item){
    super(item,RegUtil.LETTER);
  }

  public RuleLetter(){
    this("");
  }
  /**
   * 大写字母
   *
   * @author 6tail
   *
   */
  public static class LetterUpperCase extends RuleRegex{

    public LetterUpperCase(String item){
      super(item,RegUtil.LETTER_UPPERCASE);
    }

    public LetterUpperCase(){
      this("");
    }
  }
  /**
   * 小写字母
   *
   * @author 6tail
   *
   */
  public static class LetterLowerCase extends RuleRegex{

    public LetterLowerCase(String item){
      super(item,RegUtil.LETTER_LOWERCASE);
    }

    public LetterLowerCase(){
      this("");
    }
  }
}
